// samsting : this file is auto create.

#include "Ecs/2014-05-26/CreateDiskRequest.h"

namespace aliyun { namespace Ecs {

CreateDiskRequest::CreateDiskRequest() : RpcAcsRequest("Ecs", "2014-05-26", "CreateDisk") {
}

int64 CreateDiskRequest::GetOwnerId(void) const {
  return OwnerId_;
}
void CreateDiskRequest::SetOwnerId(int64 OwnerId) {
  OwnerId_ = OwnerId;
  PutQueryParameter("OwnerId", string_ValueOfInt64(OwnerId_));
}

const string& CreateDiskRequest::GetResourceOwnerAccount(void) const {
  return ResourceOwnerAccount_;
}
void CreateDiskRequest::SetResourceOwnerAccount(const string& ResourceOwnerAccount) {
  ResourceOwnerAccount_ = ResourceOwnerAccount;
  PutQueryParameter("ResourceOwnerAccount", ResourceOwnerAccount_);
}

int64 CreateDiskRequest::GetResourceOwnerId(void) const {
  return ResourceOwnerId_;
}
void CreateDiskRequest::SetResourceOwnerId(int64 ResourceOwnerId) {
  ResourceOwnerId_ = ResourceOwnerId;
  PutQueryParameter("ResourceOwnerId", string_ValueOfInt64(ResourceOwnerId_));
}

const string& CreateDiskRequest::GetZoneId(void) const {
  return ZoneId_;
}
void CreateDiskRequest::SetZoneId(const string& ZoneId) {
  ZoneId_ = ZoneId;
  PutQueryParameter("ZoneId", ZoneId_);
}

const string& CreateDiskRequest::GetSnapshotId(void) const {
  return SnapshotId_;
}
void CreateDiskRequest::SetSnapshotId(const string& SnapshotId) {
  SnapshotId_ = SnapshotId;
  PutQueryParameter("SnapshotId", SnapshotId_);
}

const string& CreateDiskRequest::GetDiskName(void) const {
  return DiskName_;
}
void CreateDiskRequest::SetDiskName(const string& DiskName) {
  DiskName_ = DiskName;
  PutQueryParameter("DiskName", DiskName_);
}

int CreateDiskRequest::GetSize(void) const {
  return Size_;
}
bool CreateDiskRequest::SetSize(int Size) {
  if(Size < 5) {
    return false;
  }
  if(Size > 2048) {
    return false;
  }
  Size_ = Size;
  PutQueryParameter("Size", string_ValueOfInt(Size_));
  return true;
}

const string& CreateDiskRequest::GetDiskCategory(void) const {
  return DiskCategory_;
}
void CreateDiskRequest::SetDiskCategory(const string& DiskCategory) {
  DiskCategory_ = DiskCategory;
  PutQueryParameter("DiskCategory", DiskCategory_);
}

const string& CreateDiskRequest::GetDescription(void) const {
  return Description_;
}
void CreateDiskRequest::SetDescription(const string& Description) {
  Description_ = Description;
  PutQueryParameter("Description", Description_);
}

const string& CreateDiskRequest::GetClientToken(void) const {
  return ClientToken_;
}
void CreateDiskRequest::SetClientToken(const string& ClientToken) {
  ClientToken_ = ClientToken;
  PutQueryParameter("ClientToken", ClientToken_);
}

const string& CreateDiskRequest::GetOwnerAccount(void) const {
  return OwnerAccount_;
}
void CreateDiskRequest::SetOwnerAccount(const string& OwnerAccount) {
  OwnerAccount_ = OwnerAccount;
  PutQueryParameter("OwnerAccount", OwnerAccount_);
}


} } // namespace aliyun { namespace Ecs {

// end of file 
